import torch

b=torch.randn(2,3,requires_grad=True)
x=torch.randn(2,3,requires_grad=True)
t=x+b
t_g=t.requires_grad
y=t.sum()
y.backward()
b_g=t.grad
print()